// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_INV_WH_ITEM_EX
// * CreateDate    : 2014-06-05 18:30:12
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:12
// * LastChanger   : 2014-06-05 18:30:12
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class InvWhItemExEntity : EntityBase
    {
        public InvWhItemExTable TableSchema
        {
            get
            {
                return InvWhItemExTable.Current;
            }
		}
		
		public InvWhItemExEntity()
        {

        }
		
		public InvWhItemExEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.WhId = Convert.ToString(CommonFunctions.ToObject(dr["WH_ID"]));
			this.ProductTypeId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TYPE_ID"]));
			this.Level = Convert.ToInt32(CommonFunctions.ToObject(dr["LEVEL"]));
        }
		
		public InvWhItemExEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.WhId = Convert.ToString(CommonFunctions.ToObject(dr["WH_ID"]));
			this.ProductTypeId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TYPE_ID"]));
			this.Level = Convert.ToInt32(CommonFunctions.ToObject(dr["LEVEL"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return InvWhItemExTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(InvWhItemExTable.C_ID)); }
            set { SetData(InvWhItemExTable.C_ID, value); }
        }
		
        [DataMember]
        public string WhId
        {
            get { return Convert.ToString(GetData(InvWhItemExTable.C_WH_ID)); }
            set { SetData(InvWhItemExTable.C_WH_ID, value); }
        }
		
        [DataMember]
        public string ProductTypeId
        {
            get { return Convert.ToString(GetData(InvWhItemExTable.C_PRODUCT_TYPE_ID)); }
            set { SetData(InvWhItemExTable.C_PRODUCT_TYPE_ID, value); }
        }
		
        [DataMember]
        public int Level
        {
            get { return Convert.ToInt32(GetData(InvWhItemExTable.C_LEVEL)); }
            set { SetData(InvWhItemExTable.C_LEVEL, value); }
        }
		
		#endregion
	}
	
	
}	

